import { ElLoading } from 'element-plus';

let loading: { close: () => void };

export const showLoading = (config?: any) => {
  loading = ElLoading.service(config);
};

export const hideLoading = () => {
  loading?.close();
};
